from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from game.combat.views import combatURLPath
urlpatterns = patterns('',
    # Example:
    # (r'^game/', include('game.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^login/', 'game.profile.views.login'),
    (r'^equip/', 'game.inventory.views.equipItems'),
    (r'^home/', 'django.views.generic.simple.direct_to_template', {'template':'basic.html'}),
    (r'^mon/(.*)','game.monster.views.getIndThumb'),
    (combatURLPath,'game.combat.views.showCombat'),
    (r'location/(.*)','game.locations.views.showLocation'),
    (r'^images/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': '/home/awithrow/workspace/game/images'}),
    (r'^styles/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': '/home/awithrow/workspace/game/styles'}),

)
